package com.huarui.payInvoice.dao.impl;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.dao.impl.BaseDaoImpl;

import com.huarui.payInvoice.dao.IPayInvoiceDao;



public class PayInvoiceDaoImpl extends BaseDaoImpl implements IPayInvoiceDao{
	@SuppressWarnings("unchecked")
	@Override
	public Integer getByConditionsForCount(Map map) {
		
		return (Integer) this.getSqlMapClientTemplate().queryForObject(namespace+".getByConditionsForCount",map);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<Map> getListByConditions(Map map) {
		
		return this.getSqlMapClientTemplate().queryForList(namespace+".getByConditions",map);
	}

	@Override
	public Map getObjByConditions(Map map) {
		List<Map> list=this.getListByConditions(map);
		if(list.size()>0){
			return list.get(0);
		}
		return null;
	}
	
}
